package com.jiangxjsy.model.crm.bo;

import com.jiangxjsy.model.crm.entity.CrmRoleField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/20 14:32
 */

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CrmRoleFieldBO extends CrmRoleField implements Serializable {
    private Integer type;

    public CrmRoleFieldBO(Integer label,Integer roleId, String fieldName, String name, Integer authLevel, Integer operateType, Integer fieldType) {
        this.setLabel(Long.valueOf(label));
        this.setRoleId(Long.valueOf(roleId));
        this.setFieldName(fieldName);
        this.setName(name);
        this.setAuthLevel(Long.valueOf(authLevel));
        this.setOperateType(Long.valueOf(operateType));
        this.setFieldType(Long.valueOf(fieldType));
        this.setMaskType(0L);
    }

    public CrmRoleFieldBO(Integer label,Integer roleId, String fieldName, String name, Integer authLevel, Integer operateType, Integer fieldType, Integer type) {
        this.setLabel(Long.valueOf(label));
        this.setRoleId(Long.valueOf(roleId));
        this.setFieldName(fieldName);
        this.setName(name);
        this.setAuthLevel(Long.valueOf(authLevel));
        this.setOperateType(Long.valueOf(operateType));
        this.setFieldType(Long.valueOf(fieldType));
        this.setMaskType(0L);
        this.type = type;
    }
}
